use "$path\datasets\figures_data_2.dta", clear

bysort jahr: egen mean_tot_share_women_elected=mean(tot_share_women_elected)
format mean_tot_share_women_elected  %9.2g

graph bar mean_tot_share_women_elected, over(jahr) ytitle(Share of women)  blabel(total,format(%9.2f) size(medsmall))  legend(label (1 "Year")  ) bargap(1) bar(1 ,color(navy)) ylabel(0(5)25, angle(horizontal))

graph export Figure2/figure2a.pdf, replace






